﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GrewalCRM.Entities;
using GrewalCRM.DAL;


namespace GrewalCRM.BLL
{
  public class ReffStatus_BLL : BaseBLLGrewalCRM, IBaseBLLGrewalCRM
  {
    public ReffStatus_BLL()
    {
      baseDAL = new ReffStatus_DAL();
    }

    #region Public Methods
    public List<ReffStatus> GetAllStatus()
    {
      List<BaseEntitiesGrewalCRM> baseEnttities = this.GetAll();
      List<ReffStatus> CallStatuses = new List<ReffStatus>();

      if (baseEnttities != null && baseEnttities.Count > 0)
      {
        foreach (BaseEntitiesGrewalCRM baseEntity in baseEnttities)
        {
          CallStatuses.Add(baseEntity as ReffStatus);
        }
      }

      return CallStatuses;
    }
    #endregion

    #region Publuc Methods
    public int Save(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    }

    protected override int AddNew(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    }

    protected override int Update(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    }

    protected override int Delete(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    } 

    protected override List<BaseEntitiesGrewalCRM> GetAll()
    {
      return baseDAL.GetAll();
    }

    protected override BaseEntitiesGrewalCRM GetByID(int ID)
    {
      throw new NotImplementedException();
    }

    protected override void FillEntity(BaseEntitiesGrewalCRM Entity)
    {
      throw new NotImplementedException();
    } 
    #endregion
  }
}
